<?php
session_start();
//获取输入的验证码
$auth = $_POST['auth'];
$authsession	=	$_SESSION[check_auth];

$cmp=strcasecmp($auth,$authsession); 
if ($auth = "")
{
echo "错误：验证码为空";
}
if ($cmp==0)
{
echo "正确：验证码输入正确";
}
else
{
echo '<script>location.href="../../admin/login.php";</script>';
}
?>